<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="button" value="按钮" onclick="f1()">
<script>
    function f1() {
        console.log("哈哈哈哈")
    }
    f1()
    function f2(name,age) {
        console.log(name+":"+age)
    }
    f2("张三",58)
    function f3(){
        return "aaaa";
    }
    let info =f3()
    console.log(info)

    function f4(x,y){
        return x+y
    }
    let result = f4(2,9)
    console.log(result)

    let f5=  function (name,age){
        console.log(name+":"+age)
    }
    f5("李四",26);

    f6  = new Function("name","age","console.log(name+':'+age)")
    f6("王五",28);



</script>
</body>
</html>